<?php
define('NOCITYCODE', TRUE);
include '../inc/common.inc.php';
include './include/global.func.php';

$r = $db->select("SELECT id,shopname FROM ".DB_PRE."shop WHERE `shopname` LIKE '%$key%' AND status = 1 ORDER BY id DESC");
print_r($r);
?>